import request from "@/utils/request";
import BASE_URL from '@/utils/env'

export const getOrderDetailAPI = id => {
    return request({
        url: 'order/queryOne',
        data: {
            id
        }
    })
}

export const updateOrderAPI = data => {
    return request({
        url: 'order/update',
        method: 'post',
        data
    })
}

export const submitCommentAPI = data => {
    return request({
        url: 'comment/add',
        method: 'post',
        data
    })
}


export const getCommentDetailAPI = id => {
    return request({
        url: 'comment/queryOne',
        data: {
            id
        }
    })
}


export const getPayRecordsAPI = typeId => {
    return request({
        url: 'expense/query',
        data: {
            typeId
        }
    })
}
